load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_filegroup", "split_srcs_and_hdrs")

licenses(["notice"])

exports_files_legacy()

IMAGE_FILES = [
    "GrImageUtils.cpp",
    "GrImageUtils.h",
    "GrTextureGenerator.cpp",
    "SkImage_Ganesh.cpp",
    "SkImage_Ganesh.h",
    "SkImage_GaneshBase.cpp",
    "SkImage_GaneshBase.h",
    "SkImage_GaneshFactories.cpp",
    "SkImage_GaneshYUVA.cpp",
    "SkImage_GaneshYUVA.h",
    "SkImage_LazyTexture.cpp",
    "SkImage_LazyTexture.h",
    "SkImage_RasterPinnable.cpp",
    "SkImage_RasterPinnable.h",
    "SkSpecialImage_Ganesh.cpp",
    "SkSpecialImage_Ganesh.h",
]

split_srcs_and_hdrs(
    name = "image",
    files = IMAGE_FILES,
)

skia_filegroup(
    name = "srcs",
    srcs = [":image_srcs"],
    visibility = ["//src/gpu/ganesh:__pkg__"],
)

skia_filegroup(
    name = "private_hdrs",
    srcs = [":image_hdrs"],
    visibility = ["//src/gpu/ganesh:__pkg__"],
)
